package com.leyou.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data

@NoArgsConstructor
public class PageResult<T> {
    private List<T> items;
    private int total;
    private int totalPage;

    public PageResult(List<T> items, int total, int totalPage) {
        this.items = items;
        this.total = total;
        this.totalPage = totalPage;
    }
}
